import {
	req
} from './config.js'
export function postupdateList(model, IP, lmoduleno, lusercode, ) {
	return req.ajax({
		path: '/updateList',
		title: '加载中...',
		method: 'POST',
		dataType: 'json',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data: {
			model,
			IP,
			lmoduleno,
			lusercode,
		},
	})
}export function postalterPwd(lusercode,lpassword, newLpassword) {
	return req.ajax({
		path: '/alterPwd',
		title: '加载中...',
		method: 'POST',
		dataType: 'json',
		header: {
			'content-type': 'application/x-www-form-urlencoded',
			'token':uni.getStorageSync('token')
		},
		data: {
			lusercode,
			lpassword,
			newLpassword
		},
	})
}
export function postupdate(lmoduleno, lusercode, data) {
	return req.ajax({
		path: '/update',
		title: '加载中...',
		method: 'POST',
		dataType: 'json',
		header: {
			'content-type': 'application/json;charset=UTF-8',
			'token': uni.getStorageSync('token')
		},
		data: {
			lmoduleno,
			lusercode,
			data
		},
	})
}
export function option(ip, op) {
	return req.ajax({
		path: '/option',
		title: '加载中...',
		method: 'POST',
		dataType: 'json',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data: {
			ip,
			op
		},
	})
}
export function updateForm(lcode, lname, lisused, lremark, luid, lissystem,lid) {
	return req.ajax({
		path: '/updateForm',
		title: '加载中...',
		method: 'POST',
		dataType: 'json',
		header: {
			'content-type': 'application/x-www-form-urlencoded',
			'token':uni.getStorageSync('token')
		},
		data: {
			lcode,
			lname,
			lisused,
			lremark,
			luid,
			lissystem,
			lid
		},
	})
}
